package com.wooboo.server.ext.util.logger;

import com.wooboo.server.ext.Logger;
import com.wooboo.server.ext.util.StringUtil;

public class LoggerManager {
	public final static String kt="\t";
	
	public static void loggerClick(Object ...strings){
    	Logger.getLogger("click").logInfo(logStr(strings));
    }
	public static void loggerActivate(Object ...strings){
    	Logger.getLogger("activate").logInfo(logStr(strings));
    }
	
	public static String logStr(Object ...strings){
    	boolean b = true;
    	StringBuffer sbuf = new StringBuffer();
    	for(Object o:strings){
    		String s = StringUtil.dealNull(o);
    		sbuf.append(b?s:kt+s);
    		if(b){b=false;}
    	}
    	return sbuf.toString();
    }
    
}
